<?php

namespace App\Trip\Orders\BookOrders;


enum BookTypes: int
{
    case BOOK_TYPE_BOOK         = 1;
    case BOOK_TYPE_CHANGE       = 2;
    case BOOK_TYPE_SNAP_UP      = 3;
    case BOOK_TYPE_SNAP_UP_EDIT = 4;

    public function isBook(): bool
    {
        return $this->value == 1;
    }

    public function isSnapUp(): bool
    {
        return $this->value == 3;
    }

    public function isSnapUpEdit(): bool
    {
        return $this->value == 4;
    }

    public function isChange(): bool
    {
        return $this->value == 2;
    }
}